package com.lanyun.yebdemo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lanyun.yebdemo.bean.Admin;
import com.lanyun.yebdemo.bean.Article;
import com.lanyun.yebdemo.mapper.AdminMapper;
import com.lanyun.yebdemo.mapper.ArticleMapper;
import com.lanyun.yebdemo.service.IAdminService;
import com.lanyun.yebdemo.service.IArticlesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticlesServiceImpl extends ServiceImpl<ArticleMapper, Article> implements IArticlesService {

    @Autowired
    ArticleMapper articleMapper;

    @Override
    public List<Article> getArticles() {
        return articleMapper.getAll();
    }
}
